<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html   xmlns="http://www.w3.org/1999/xhtml"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:rich="http://richfaces.org/rich"
        xmlns:a4j="http://richfaces.org/a4j"
        xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
    <ui:component>
        <h:panelGrid columns="2" width="100%" columnClasses="leftmenu, contentplace">
            <rich:panel header="Menu">
                <h:form>
                    <a4j:commandButton value="Create Report" render="members_content, gemeinsam" action="#{membersService.putPageVisibleMenuCreate()}"/>
                    <rich:panelMenu>
                        <rich:panelMenuGroup label="Menu">
                            <rich:panelMenuItem label="Create" render="members_content, gemeinsam" action="#{membersService.putPageVisibleMenuCreate()}"/>
                            <rich:panelMenuItem label="List" render="members_content, gemeinsam" action="#{membersService.putPageVisibleMenuList()}"/>
                        </rich:panelMenuGroup>
                        <rich:panelMenuGroup label="Report">
                            <rich:panelMenuItem label="Create" render="members_content, gemeinsam" action="#{membersService.putPageVisibleReportCreate()}"/>
                            <rich:panelMenuItem label="List" render="members_content, gemeinsam" action="#{membersService.putPageVisibleReportList()}"/>
                        </rich:panelMenuGroup>
                    </rich:panelMenu>
                </h:form>
            </rich:panel>

            <rich:panel header="Members Content" id="members_content">
                <rich:panel header="Menu Creation" rendered="#{membersService.pageVisibleMenuCreate}">
                    <ui:include src="menu_create.xhtml"/>
                </rich:panel>
                <rich:panel header="Menu List" rendered="#{membersService.pageVisibleMenuList}">
                    <ui:include src="menu_list.xhtml"/>
                </rich:panel>
                <rich:panel header="Report Creation" rendered="#{membersService.pageVisibleReportCreate}">
                    <ui:include src="report_create.xhtml"/>
                </rich:panel>
                <rich:panel header="Report List" rendered="#{membersService.pageVisibleReportList}">
                    <ui:include src="report_list.xhtml"/>
                </rich:panel>
            </rich:panel>

        </h:panelGrid>
    </ui:component>
</html>